package com.whosly.rapid.lang.thread;

import java.lang.reflect.Method;

/**
 *
 */
public interface AsyncLoadMethodMatch {
    /**
     * 默认提供返回always true的实现
     */
    AsyncLoadMethodMatch TRUE = new AsyncLoadTrueMethodMatcher();

    boolean matches(Method method);

}

/**
 *
 */
class AsyncLoadTrueMethodMatcher implements AsyncLoadMethodMatch {

    @Override
    public boolean matches(Method method) {
        return true;
    }

    @Override
    public String toString() {
        return "AsyncLoadTrueMethodMatcher.TURE";
    }
}
